package com.work.music.controller;

import com.work.music.common.ResponseJson;
import com.work.music.exception.AjaxOperationFailException;
import com.work.music.service.MusicManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xs on 2019/4/16.
 */
@RestController
@RequestMapping("acp/music")
public class MusicManagerController extends BaseController{
    @Autowired
    private MusicManagerService musicManagerService;

    /**
     * 获取歌手列表信息
     * @return
     */
    @RequestMapping("/ajaxSongsterList.json")
    public ResponseJson ajaxSongsterList() {
        return musicManagerService.ajaxSongsterList();
    }

    /**
     * 审核歌手信息
     * @return
     */
    @RequestMapping("/ajaxSongsterEdit.json")
    public ResponseJson ajaxSongsterEdit() throws AjaxOperationFailException {
        return musicManagerService.ajaxSongsterEdit();
    }

    /**
     * 获取专辑列表信息
     * @return
     */
    @RequestMapping("/ajaxAlbumList.json")
    public ResponseJson ajaxAlbumList() {
        return musicManagerService.ajaxAlbumList();
    }

    /**
     * 修改专辑信息
     * @return
     */
    @RequestMapping("/ajaxAlbumEdit.json")
    public ResponseJson ajaxAlbumEdit() throws AjaxOperationFailException {
        return musicManagerService.ajaxAlbumEdit();
    }

    /**
     * 获取歌词列表
     * @return
     */
    @RequestMapping("/ajaxLyricsList.json")
    public ResponseJson ajaxLyricsList(){
        return musicManagerService.ajaxLyricsList();
    }

    /**
     * 修改专辑信息
     * @return
     */
    @RequestMapping("/ajaxLyricsEdit.json")
    public ResponseJson ajaxLyricsEdit() throws AjaxOperationFailException {
        return musicManagerService.ajaxLyricsEdit();
    }
    /**
     * 获取用户列表信息
     * @return
     */
    @RequestMapping("/ajaxUserList.json")
    public ResponseJson ajaxUserList() throws AjaxOperationFailException {
        return musicManagerService.ajaxUserList();
    }
    /**
     * 修改用户信息
     * @return
     */
    @RequestMapping("/ajaxInfoEdit.json")
    public ResponseJson ajaxInfoEdit() throws AjaxOperationFailException {
        return musicManagerService.ajaxInfoEdit();
    }

    /**
     * 获取积分类型列表
     * @return
     */
    @RequestMapping("/ajaxIntegralTypeList.json")
    public ResponseJson ajaxIntegralTypeList() {
        return musicManagerService.ajaxIntegralTypeList();
    }

    /**
     * 修改或新增积分类型
     * @return
     * @throws AjaxOperationFailException
     */
    @RequestMapping("/ajaxIntegralTypeEdit.json")
    public ResponseJson ajaxIntegralTypeEdit() throws AjaxOperationFailException {
        return musicManagerService.ajaxIntegralTypeEdit();
    }
     /**
     * 删除积分类型
     * @return
     * @throws AjaxOperationFailException
     */
    @RequestMapping("/ajaxintegraltypeDel.json")
    public ResponseJson ajaxintegraltypeDel() throws AjaxOperationFailException {
        return musicManagerService.ajaxintegraltypeDel();
    }


}
